export default [
  {
    path: '/',
    redirect: '/login',
    meta: {
      isPublic: true,
    },
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/LoginView.vue'),
    meta: {
      isPublic: true,
    },
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/HomeView.vue'),
    children: [
      {
        path: '/:error(.*)*',
        component: () => import('@/views/NotFound.vue'),
      },
    ],
  },
  {
    path: '/:error(.*)*',
    // component:()=>import("@/views/NotFound.vue")
    redirect: '/login',
    meta: {
      isPublic: true,
    },
  },
]
